package practice;

import java.util.concurrent.CountDownLatch;

public class Agent implements Runnable{
    Day24 day24 = new Day24();
    public CountDownLatch countDownLatch;
    @Override
    public void run() {
        try {
            day24.add();
            System.out.println(Day24.count);
            Thread.sleep(500);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }finally {
            countDownLatch.countDown();
        }
    }
}
